Optimal. Leaf size=257 \[ \frac {3 \sqrt {\frac {\pi }{2}} \cos \left (a-\frac {b c}{d}\right ) \text {FresnelC}\left (\frac {\sqrt {b} \sqrt {\frac {2}{\pi }} \sqrt {c+d x}}{\sqrt {d}}\right )}{2 \sqrt {b} \sqrt {d}}+\frac {\sqrt {\frac {\pi }{6}} \cos \left (3 a-\frac {3 b c}{d}\right ) \text {FresnelC}\left (\frac {\sqrt {b} \sqrt {\frac {6}{\pi }} \sqrt {c+d x}}{\sqrt {d}}\right )}{2 \sqrt {b} \sqrt {d}}-\frac {\sqrt {\frac {\pi }{6}} S\left (\frac {\sqrt {b} \sqrt {\frac {6}{\pi }} \sqrt {c+d x}}{\sqrt {d}}\right ) \sin \left (3 a-\frac {3 b c}{d}\right )}{2 \sqrt {b} \sqrt {d}}-\frac {3 \sqrt {\frac {\pi }{2}} S\left (\frac {\sqrt {b} \sqrt {\frac {2}{\pi }} \sqrt {c+d x}}{\sqrt {d}}\right ) \sin \left (a-\frac {b c}{d}\right )}{2 \sqrt {b} \sqrt {d}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.26, antiderivative size = 257, normalized size of antiderivative = 1.00, number of steps
used = 12, number of rules used = 6, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {3393, 3387,
3386, 3432, 3385, 3433} \begin {gather*} \frac {3 \sqrt {\frac {\pi }{2}} \cos \left (a-\frac {b c}{d}\right ) \text {FresnelC}\left (\frac {\sqrt {\frac {2}{\pi }} \sqrt {b} \sqrt {c+d x}}{\sqrt {d}}\right )}{2 \sqrt {b} \sqrt {d}}+\frac {\sqrt {\frac {\pi }{6}} \cos \left (3 a-\frac {3 b c}{d}\right ) \text {FresnelC}\left (\frac {\sqrt {\frac {6}{\pi }} \sqrt {b} \sqrt {c+d x}}{\sqrt {d}}\right )}{2 \sqrt {b} \sqrt {d}}-\frac {\sqrt {\frac {\pi }{6}} \sin \left (3 a-\frac {3 b c}{d}\right ) S\left (\frac {\sqrt {b} \sqrt {\frac {6}{\pi }} \sqrt {c+d x}}{\sqrt {d}}\right )}{2 \sqrt {b} \sqrt {d}}-\frac {3 \sqrt {\frac {\pi }{2}} \sin \left (a-\frac {b c}{d}\right ) S\left (\frac {\sqrt {b} \sqrt {\frac {2}{\pi }} \sqrt {c+d x}}{\sqrt {d}}\right )}{2 \sqrt {b} \sqrt {d}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3385
Rule 3386
Rule 3387
Rule 3393
Rule 3432
Rule 3433
Rubi steps
\begin {align*} \int \frac {\cos ^3(a+b x)}{\sqrt {c+d x}} \, dx &=\int \left (\frac {3 \cos (a+b x)}{4 \sqrt {c+d x}}+\frac {\cos (3 a+3 b x)}{4 \sqrt {c+d x}}\right ) \, dx\\ &=\frac {1}{4} \int \frac {\cos (3 a+3 b x)}{\sqrt {c+d x}} \, dx+\frac {3}{4} \int \frac {\cos (a+b x)}{\sqrt {c+d x}} \, dx\\ &=\frac {1}{4} \cos \left (3 a-\frac {3 b c}{d}\right ) \int \frac {\cos \left (\frac {3 b c}{d}+3 b x\right )}{\sqrt {c+d x}} \, dx+\frac {1}{4} \left (3 \cos \left (a-\frac {b c}{d}\right )\right ) \int \frac {\cos \left (\frac {b c}{d}+b x\right )}{\sqrt {c+d x}} \, dx-\frac {1}{4} \sin \left (3 a-\frac {3 b c}{d}\right ) \int \frac {\sin \left (\frac {3 b c}{d}+3 b x\right )}{\sqrt {c+d x}} \, dx-\frac {1}{4} \left (3 \sin \left (a-\frac {b c}{d}\right )\right ) \int \frac {\sin \left (\frac {b c}{d}+b x\right )}{\sqrt {c+d x}} \, dx\\ &=\frac {\cos \left (3 a-\frac {3 b c}{d}\right ) \text {Subst}\left (\int \cos \left (\frac {3 b x^2}{d}\right ) \, dx,x,\sqrt {c+d x}\right )}{2 d}+\frac {\left (3 \cos \left (a-\frac {b c}{d}\right )\right ) \text {Subst}\left (\int \cos \left (\frac {b x^2}{d}\right ) \, dx,x,\sqrt {c+d x}\right )}{2 d}-\frac {\sin \left (3 a-\frac {3 b c}{d}\right ) \text {Subst}\left (\int \sin \left (\frac {3 b x^2}{d}\right ) \, dx,x,\sqrt {c+d x}\right )}{2 d}-\frac {\left (3 \sin \left (a-\frac {b c}{d}\right )\right ) \text {Subst}\left (\int \sin \left (\frac {b x^2}{d}\right ) \, dx,x,\sqrt {c+d x}\right )}{2 d}\\ &=\frac {3 \sqrt {\frac {\pi }{2}} \cos \left (a-\frac {b c}{d}\right ) C\left (\frac {\sqrt {b} \sqrt {\frac {2}{\pi }} \sqrt {c+d x}}{\sqrt {d}}\right )}{2 \sqrt {b} \sqrt {d}}+\frac {\sqrt {\frac {\pi }{6}} \cos \left (3 a-\frac {3 b c}{d}\right ) C\left (\frac {\sqrt {b} \sqrt {\frac {6}{\pi }} \sqrt {c+d x}}{\sqrt {d}}\right )}{2 \sqrt {b} \sqrt {d}}-\frac {\sqrt {\frac {\pi }{6}} S\left (\frac {\sqrt {b} \sqrt {\frac {6}{\pi }} \sqrt {c+d x}}{\sqrt {d}}\right ) \sin \left (3 a-\frac {3 b c}{d}\right )}{2 \sqrt {b} \sqrt {d}}-\frac {3 \sqrt {\frac {\pi }{2}} S\left (\frac {\sqrt {b} \sqrt {\frac {2}{\pi }} \sqrt {c+d x}}{\sqrt {d}}\right ) \sin \left (a-\frac {b c}{d}\right )}{2 \sqrt {b} \sqrt {d}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.23, size = 236, normalized size = 0.92 \begin {gather*} \frac {i e^{-\frac {3 i (b c+a d)}{d}} \left (-9 e^{2 i \left (2 a+\frac {b c}{d}\right )} \sqrt {-\frac {i b (c+d x)}{d}} \text {Gamma}\left (\frac {1}{2},-\frac {i b (c+d x)}{d}\right )+9 e^{2 i a+\frac {4 i b c}{d}} \sqrt {\frac {i b (c+d x)}{d}} \text {Gamma}\left (\frac {1}{2},\frac {i b (c+d x)}{d}\right )+\sqrt {3} \left (-e^{6 i a} \sqrt {-\frac {i b (c+d x)}{d}} \text {Gamma}\left (\frac {1}{2},-\frac {3 i b (c+d x)}{d}\right )+e^{\frac {6 i b c}{d}} \sqrt {\frac {i b (c+d x)}{d}} \text {Gamma}\left (\frac {1}{2},\frac {3 i b (c+d x)}{d}\right )\right )\right )}{24 b \sqrt {c+d x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 212, normalized size = 0.82
method | result | size |
derivativedivides | \(\frac {\frac {3 \sqrt {2}\, \sqrt {\pi }\, \left (\cos \left (\frac {d a -b c}{d}\right ) \FresnelC \left (\frac {\sqrt {2}\, b \sqrt {d x +c}}{\sqrt {\pi }\, \sqrt {\frac {b}{d}}\, d}\right )-\sin \left (\frac {d a -b c}{d}\right ) \mathrm {S}\left (\frac {\sqrt {2}\, b \sqrt {d x +c}}{\sqrt {\pi }\, \sqrt {\frac {b}{d}}\, d}\right )\right )}{4 \sqrt {\frac {b}{d}}}+\frac {\sqrt {2}\, \sqrt {\pi }\, \sqrt {3}\, \left (\cos \left (\frac {3 d a -3 b c}{d}\right ) \FresnelC \left (\frac {\sqrt {2}\, \sqrt {3}\, b \sqrt {d x +c}}{\sqrt {\pi }\, \sqrt {\frac {b}{d}}\, d}\right )-\sin \left (\frac {3 d a -3 b c}{d}\right ) \mathrm {S}\left (\frac {\sqrt {2}\, \sqrt {3}\, b \sqrt {d x +c}}{\sqrt {\pi }\, \sqrt {\frac {b}{d}}\, d}\right )\right )}{12 \sqrt {\frac {b}{d}}}}{d}\) | \(212\) |
default | \(\frac {\frac {3 \sqrt {2}\, \sqrt {\pi }\, \left (\cos \left (\frac {d a -b c}{d}\right ) \FresnelC \left (\frac {\sqrt {2}\, b \sqrt {d x +c}}{\sqrt {\pi }\, \sqrt {\frac {b}{d}}\, d}\right )-\sin \left (\frac {d a -b c}{d}\right ) \mathrm {S}\left (\frac {\sqrt {2}\, b \sqrt {d x +c}}{\sqrt {\pi }\, \sqrt {\frac {b}{d}}\, d}\right )\right )}{4 \sqrt {\frac {b}{d}}}+\frac {\sqrt {2}\, \sqrt {\pi }\, \sqrt {3}\, \left (\cos \left (\frac {3 d a -3 b c}{d}\right ) \FresnelC \left (\frac {\sqrt {2}\, \sqrt {3}\, b \sqrt {d x +c}}{\sqrt {\pi }\, \sqrt {\frac {b}{d}}\, d}\right )-\sin \left (\frac {3 d a -3 b c}{d}\right ) \mathrm {S}\left (\frac {\sqrt {2}\, \sqrt {3}\, b \sqrt {d x +c}}{\sqrt {\pi }\, \sqrt {\frac {b}{d}}\, d}\right )\right )}{12 \sqrt {\frac {b}{d}}}}{d}\) | \(212\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] Result contains complex when optimal does not.
time = 0.52, size = 377, normalized size = 1.47 \begin {gather*} -\frac {{\left ({\left (\frac {\left (i - 1\right ) \cdot 9^{\frac {1}{4}} \sqrt {2} \sqrt {\pi } b \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \cos \left (-\frac {3 \, {\left (b c - a d\right )}}{d}\right )}{d} + \frac {\left (i + 1\right ) \cdot 9^{\frac {1}{4}} \sqrt {2} \sqrt {\pi } b \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \sin \left (-\frac {3 \, {\left (b c - a d\right )}}{d}\right )}{d}\right )} \operatorname {erf}\left (\sqrt {d x + c} \sqrt {\frac {3 i \, b}{d}}\right ) - 9 \, {\left (-\frac {\left (i - 1\right ) \, \sqrt {2} \sqrt {\pi } b \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \cos \left (-\frac {b c - a d}{d}\right )}{d} - \frac {\left (i + 1\right ) \, \sqrt {2} \sqrt {\pi } b \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \sin \left (-\frac {b c - a d}{d}\right )}{d}\right )} \operatorname {erf}\left (\sqrt {d x + c} \sqrt {\frac {i \, b}{d}}\right ) - 9 \, {\left (\frac {\left (i + 1\right ) \, \sqrt {2} \sqrt {\pi } b \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \cos \left (-\frac {b c - a d}{d}\right )}{d} + \frac {\left (i - 1\right ) \, \sqrt {2} \sqrt {\pi } b \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \sin \left (-\frac {b c - a d}{d}\right )}{d}\right )} \operatorname {erf}\left (\sqrt {d x + c} \sqrt {-\frac {i \, b}{d}}\right ) + {\left (-\frac {\left (i + 1\right ) \cdot 9^{\frac {1}{4}} \sqrt {2} \sqrt {\pi } b \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \cos \left (-\frac {3 \, {\left (b c - a d\right )}}{d}\right )}{d} - \frac {\left (i - 1\right ) \cdot 9^{\frac {1}{4}} \sqrt {2} \sqrt {\pi } b \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \sin \left (-\frac {3 \, {\left (b c - a d\right )}}{d}\right )}{d}\right )} \operatorname {erf}\left (\sqrt {d x + c} \sqrt {-\frac {3 i \, b}{d}}\right )\right )} d}{48 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 213, normalized size = 0.83 \begin {gather*} \frac {\sqrt {6} \pi \sqrt {\frac {b}{\pi d}} \cos \left (-\frac {3 \, {\left (b c - a d\right )}}{d}\right ) \operatorname {C}\left (\sqrt {6} \sqrt {d x + c} \sqrt {\frac {b}{\pi d}}\right ) + 9 \, \sqrt {2} \pi \sqrt {\frac {b}{\pi d}} \cos \left (-\frac {b c - a d}{d}\right ) \operatorname {C}\left (\sqrt {2} \sqrt {d x + c} \sqrt {\frac {b}{\pi d}}\right ) - 9 \, \sqrt {2} \pi \sqrt {\frac {b}{\pi d}} \operatorname {S}\left (\sqrt {2} \sqrt {d x + c} \sqrt {\frac {b}{\pi d}}\right ) \sin \left (-\frac {b c - a d}{d}\right ) - \sqrt {6} \pi \sqrt {\frac {b}{\pi d}} \operatorname {S}\left (\sqrt {6} \sqrt {d x + c} \sqrt {\frac {b}{\pi d}}\right ) \sin \left (-\frac {3 \, {\left (b c - a d\right )}}{d}\right )}{12 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\cos ^{3}{\left (a + b x \right )}}{\sqrt {c + d x}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] Result contains complex when optimal does not.
time = 0.46, size = 330, normalized size = 1.28 \begin {gather*} -\frac {\frac {9 \, \sqrt {2} \sqrt {\pi } d \operatorname {erf}\left (-\frac {\sqrt {2} \sqrt {b d} \sqrt {d x + c} {\left (\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}{2 \, d}\right ) e^{\left (\frac {i \, b c - i \, a d}{d}\right )}}{\sqrt {b d} {\left (\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}} + \frac {\sqrt {6} \sqrt {\pi } d \operatorname {erf}\left (-\frac {\sqrt {6} \sqrt {b d} \sqrt {d x + c} {\left (-\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}{2 \, d}\right ) e^{\left (-\frac {3 \, {\left (i \, b c - i \, a d\right )}}{d}\right )}}{\sqrt {b d} {\left (-\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}} + \frac {9 \, \sqrt {2} \sqrt {\pi } d \operatorname {erf}\left (-\frac {\sqrt {2} \sqrt {b d} \sqrt {d x + c} {\left (-\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}{2 \, d}\right ) e^{\left (\frac {-i \, b c + i \, a d}{d}\right )}}{\sqrt {b d} {\left (-\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}} + \frac {\sqrt {6} \sqrt {\pi } d \operatorname {erf}\left (-\frac {\sqrt {6} \sqrt {b d} \sqrt {d x + c} {\left (\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}{2 \, d}\right ) e^{\left (-\frac {3 \, {\left (-i \, b c + i \, a d\right )}}{d}\right )}}{\sqrt {b d} {\left (\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}}{24 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\cos \left (a+b\,x\right )}^3}{\sqrt {c+d\,x}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________